<?php
$_catHp = Mage::helper('catalog/category');
$_selfBrand = Mage::getModel('catalog/category')->load(Silk_Store_Config_Store::GREEN_BRANDS_ID);
$_otherStore = Mage::getModel('catalog/category')->load(Silk_Store_Config_Store::REGION_CITY_CATEGORY_ID);
?>

<?php foreach($_selfBrand->getChildrenCategories() as $brand): ?>
<?php if($brand->hasChildren()): ?>
<div class="Green-store-all">
    <div class="Green-with-coffee"><span><?php echo $brand->getName() ?>:</span></div>
    <div class="Green-with-coffee-store">
        <?php foreach($brand->getChildrenCategories() as $store): ?>
            <a href="<?php echo $_catHp->getCategoryUrl($store) ?>"><?php echo $store->getName(); ?></a>
        <?php endforeach; ?>
    </div>
</div>
<?php endif ?>
<?php endforeach ?>
<?php foreach($_otherStore->getChildrenCategories() as $city): ?>
<?php if($city->hasChildren()): ?>
<div class="Store-list-all">
    <div class="Store-list"><span><?php echo $this->__('商店列表:') ?></span></div>
    <div class="Green-with-coffee-store">
    <?php //foreach($_otherStore->getChildrenCategories() as $city): ?>
        <?php foreach($city->getChildrenCategories() as $region): ?>
            <?php foreach($region->getChildrenCategories() as $store): ?>
                 <a href="<?php echo $_catHp->getCategoryUrl($store) ?>"><?php echo $store->getName(); ?></a>
            <?php endforeach ?>
        <?php endforeach ?>
    <?php //endforeach ?>
    </div>
</div>
<?php endif ?>
<?php endforeach ?>